package types;

public class Block {
	private String b_type;
	private Integer b_lines;
	private boolean b_checked;

	// constructors
	public Block() {
	}
	
	public Block(Integer lines, String btype) {
	      this.b_type = btype;
	      this.b_lines = lines;
	      this.b_checked = true;
	}
	
	public Block(Integer lines, String btype, boolean checked) {
	      this.b_type = btype;
	      this.b_lines = lines;
	      this.b_checked = checked;
	}
	   
   public void copyBlock(Block b) {
	   this.b_type = b.getType();
	   this.b_lines = b.getLine();
	   this.b_checked = b.getChecked();
	}
   
// getters and setters   
   public boolean getChecked() {
		return this.b_checked;
	}
   
   public void setChecked(boolean ch) {
		this.b_checked = ch;
	}

	public void blockPrint() {
		System.out.println("this block type is "+ this.b_type + " with " + this.b_lines +" lines ");
	}
	
	public Integer getLine(){
		return this.b_lines;
	}
	
	public String getType(){
		return this.b_type;
	}
	
	
}
